package br.com.gtoolz.myimc.extras;

import android.app.Activity;
import android.content.Context;
import android.view.inputmethod.InputMethodManager;

public class Teclado {
	
	private Activity activity;
	
	public Teclado(Activity activity) {
		this.activity = activity;
	}
	
	public void esconder() {
		
		InputMethodManager inputManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); 
		inputManager.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
	
	}

}
